package com.eChartsOperation.service.imp;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import com.eChartsOperation.dao.StockChartsDao;
import com.eChartsOperation.service.StockChartsService;


@Service("stockChartsService")
public class StockChartsServiceImp implements StockChartsService {
	
	@Autowired
	private StockChartsDao stockChartsDao;

	/**
	 * 查询日期(一个时间段的所有日期)
	 */
	@Override
	public List<String> selStockDate(String startDate, String endDate) {
		return stockChartsDao.selStockDate(startDate, endDate);
	}

	
	/**
	 * 查询计算缺货率的仓库信息
	 * @return
	 */
	@Override
	public List<String> selWarehouse() {		
		return stockChartsDao.selWarehouse();
	}

	/**
	 * 查询商品品牌
	 * @param map
	 * @return
	 */
	@Override
	public List<Map<String, String>> selProductBrand() {		
		return stockChartsDao.selProductBrand();
	}
	
  /**
    * 查询类别信息
    */
	@Override
	public List<Map<String, String>> selProductCategory(Map<String,String> map) {
		return stockChartsDao.selProductCategory(map);
	}

	/**
	 * 查询单个仓库的缺货率
	 * @return
	 */
	@Override
	public List<String> selStockoutRate(Map<String, String> map) {
		return stockChartsDao.selStockoutRate(map);
	}

	/**
	 * 查询单个仓库商品总个数
	 */
	@Override
	public Integer selStouckoutTotalNumber(Map<String, Object> map) {
		return stockChartsDao.selStouckoutTotalNumber(map);
	}
	
	

   /**
    * 查询缺货明细
    */
	@Override
	public List<Map<String, Object>> selStockoutDetailed(Map<String, Object> map) {	
		return stockChartsDao.selStockoutDetailed(map);
	}

	/**
	 * 查询缺货明细总条数
	 * @param map
	 * @return
	 */
	@Override
	public Integer selStockoutCount(Map<String, Object> map) {
		return stockChartsDao.selStockoutCount(map);
	}







}
